import { createStore, applyMiddleware, combineReducers } from 'redux'
import thunk from 'redux-thunk'

import home from './modules/home'
import cart from './modules/cart'
import user from './modules/user'

const reducer = combineReducers({
  home,
  cart,
  user
})

const store = createStore(reducer, applyMiddleware(thunk))
export default store